﻿using Avalonia.Controls;
using WikiApp.Lib;

namespace iOSClub.WikiApp.ViewModels;

public class MainWindowViewModel : ViewModelBase
{
    public AutoCompleteFilterPredicate<object> PersonFilter
    {
        get
        {
            return (searchText, obj) =>
                (obj as PageItem)!.Path.Contains(searchText ?? "")
                || (obj as PageItem)!.Title.Contains(searchText ?? "");
        }
    }
}